Bluetooth: L2CAP: Fix attempting to access uninitialized memory
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 31 Oct 2022 23:10:52 +0000 (16:10 -0700)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 5 Nov 2022 13:41:22 +0000 (13:41 +0000)
commited76dd6bab3ad3cb42438ad70b0e83b5f0204237
tree1dd53575b981f3c300b7305bc5465ccb7e5dbf1f
parent22b61d553ac104be09c6e6825b7167fac000edf6
Bluetooth: L2CAP: Fix attempting to access uninitialized memory

Origin: https://git.kernel.org/linus/b1a2cd50c0357f243b7435a732b4e62ba3157a2e
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2022-42895

On l2cap_parse_conf_req the variable efs is only initialized if
remote_efs has been set.

CVE: CVE-2022-42895
CC: stable@vger.kernel.org
Reported-by: Tamás Koczka <poprdi@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Reviewed-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name Bluetooth-L2CAP-Fix-attempting-to-access-uninitializ.patch
net/bluetooth/l2cap_core.c